package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FollowUpWayMapper;
import com.ruoyi.system.domain.FollowUpWay;
import com.ruoyi.system.service.IFollowUpWayService;

/**
 * 潜在客户跟进方式Service业务层处理
 * 
 * @author tong
 * @date 2024-01-23
 */
@Service
public class FollowUpWayServiceImpl implements IFollowUpWayService 
{
    @Autowired
    private FollowUpWayMapper followUpWayMapper;

    /**
     * 查询潜在客户跟进方式
     * 
     * @param id 潜在客户跟进方式主键
     * @return 潜在客户跟进方式
     */
    @Override
    public FollowUpWay selectFollowUpWayById(Long id)
    {
        return followUpWayMapper.selectFollowUpWayById(id);
    }

    /**
     * 查询潜在客户跟进方式列表
     * 
     * @param followUpWay 潜在客户跟进方式
     * @return 潜在客户跟进方式
     */
    @Override
    public List<FollowUpWay> selectFollowUpWayList(FollowUpWay followUpWay)
    {
        return followUpWayMapper.selectFollowUpWayList(followUpWay);
    }

    /**
     * 新增潜在客户跟进方式
     * 
     * @param followUpWay 潜在客户跟进方式
     * @return 结果
     */
    @Override
    public int insertFollowUpWay(FollowUpWay followUpWay)
    {
        return followUpWayMapper.insertFollowUpWay(followUpWay);
    }

    /**
     * 修改潜在客户跟进方式
     * 
     * @param followUpWay 潜在客户跟进方式
     * @return 结果
     */
    @Override
    public int updateFollowUpWay(FollowUpWay followUpWay)
    {
        return followUpWayMapper.updateFollowUpWay(followUpWay);
    }

    /**
     * 批量删除潜在客户跟进方式
     * 
     * @param ids 需要删除的潜在客户跟进方式主键
     * @return 结果
     */
    @Override
    public int deleteFollowUpWayByIds(Long[] ids)
    {
        return followUpWayMapper.deleteFollowUpWayByIds(ids);
    }

    /**
     * 删除潜在客户跟进方式信息
     * 
     * @param id 潜在客户跟进方式主键
     * @return 结果
     */
    @Override
    public int deleteFollowUpWayById(Long id)
    {
        return followUpWayMapper.deleteFollowUpWayById(id);
    }
}
